import request from '@/utils/request'

export function register(data) {
  return request({
    url:'Reg/reg',
    method:'post',
    data
  })
}

export function login(data) {
  return request({
    url:'Login/login',
    method:'post',
    data
  })
}

export function getUserInfo(data) {
  return request({
    url:'User/getUserInfo',
    method:'post',
    data
  })
}

export function getCurrencyInfo(data) {
  return request({
    url:'UserMoney/getCurrency',
    method:'post',
    data
  })
}

//Login/logout
export function logout(data) {
  return request({
    url:'Login/logout',
    method:'post',
    data
  })
}
